package com.ruoyi.web.xxj.domain.pojo;

import java.math.BigDecimal;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.ruoyi.web.xxj.domain.ClassOrder;
import com.ruoyi.web.xxj.domain.ProductOrder;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class WXPayOrderReq {
    @ApiModelProperty(value = "订单支付类型(商品订单;预约订单)", required = true)
    @NotBlank(message = "订单支付类型不能为空！")
    private String orderType;//附加数据，回调时可根据这个数据辨别订单类型或其他

    @ApiModelProperty(value = "总金额", required = true)
    @NotNull(message = "总金额不能为空！")
    private BigDecimal totalPrice;

    @ApiModelProperty("课程订单信息")
    private ClassOrder classOrder;

    @ApiModelProperty("产品订单信息")
    private ProductOrder productOrder;

}
